<!DOCTYPE html>
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile" contentType="text/html">
	<f:loadBundle basename="label" var="label" />
	<f:loadBundle basename="MessageResources" var="msgs" />
	<pm:page title="">
		<pm:view id="readUser">
			<pm:header title="#{label['cadastro.usuario.titulo']}">
				<p:commandButton styleClass="ui-btn-right ui-btn-inline"
					value="#{label['sistema.home']}" icon="ui-icon-arrow-l" />
			</pm:header>

			<pm:content>
				<p:growl autoUpdate="true" />

				<p:commandButton value="#{label['cadastro.novo']}"
					action="pm:cadUser?transition=slide" />
			</pm:content>
		</pm:view>


		<pm:view id="cadUser">
			<pm:header title="#{label['cadastro.usuario.titulo']}" />
			<pm:content>
				<p:growl autoUpdate="true" />
				<p:messages autoUpdate="true" />
				<h:form>
					<p:outputPanel id="editFormPanel">
						<pm:field>
							<p:outputLabel for="nome"
								value="#{label['cadastro.usuario.nome']}" />
							<p:inputText id="nome" value="#{usuarioController.user.nome}" />
						</pm:field>
						<pm:field>
							<p:outputLabel for="email"
								value="#{label['cadastro.usuario.email']}" />
							<p:inputText id="email" value="#{usuarioController.user.email}" />
						</pm:field>
						<pm:field>
							<p:outputLabel for="cep"  />
						</pm:field>
					</p:outputPanel>
					<p:commandButton action="#{usuarioController.salvar()}"
						value="#{label['cadastro.btn.salvar']}" />
					<p:commandButton actionListener="#{usuarioController.teste()}" />
				</h:form>
			</pm:content>
		</pm:view>

	</pm:page>
</f:view>